/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ipti.br.tag.bo;

import org.ipti.br.tag.dao.TaskFacade;
import org.ipti.br.tag.entity.Task;
import java.io.Serializable;
import java.util.List;
import javax.inject.Inject;
import javax.ejb.Stateless;

/**
 *
 * @author root
 */
@Stateless
public class TaskBO implements Serializable {

    @Inject
    private TaskFacade taskDAO;

    public TaskFacade getTaskDAO() {
        return taskDAO;
    }

    public void create(Task task) {
        getTaskDAO().create(task);
    }

    public void edit(Task task) {
        getTaskDAO().edit(task);
    }

    public void remove(Task task) {
        getTaskDAO().remove(task);
    }

    public Task find(Object id) {
        return getTaskDAO().find(id);
    }

    public List<Task> findAll() {
        return getTaskDAO().findAll();
    }

    public void editForSynchronization(Task task) {
        getTaskDAO().editForSynchronization(task);
    }

    public List<Task> findAllOrder() {
        return getTaskDAO().findAllOrder();
    }
}
